(async()=>{
  let func = ()=>{
    return new Promise((resolve => {
      setTimeout(()=>{
        resolve('jw');
      }, 1000);
    }));
  };
  let result = await func();
  console.log(result);
})();
console.log('----------');
alert('ahah')
